#5 Implement anagram detection