Top Hat interview question

leetcode - - valid anagram