Hacker Rank : Algorithms : Arrays and Sorting : Sherlock and Pairs