anagram checker interview question