String Anagram Hackerrank Solution