HackerRank: Anagram