LogFind solution to InterviewStreet code problem.