[Anagram] simple anagram checker function