https://www.hackerrank.com/challenges/red-john-is-back