[Hacker Rank] Sept 20/20 - SherlockPuzzle