Sherlock And Anagrams Hackerrank