suspicious activity from logs hackerrank solution