IQVIA interview question

How would you implement an anagram checker?