Fun With Anagrams Hackerrank