[Hacker Rank] Sept 20/20 - sherlock