Sherlock And Anagrams Hackerrank Solution