IQVIA Interview Question

How would you implement an anagram checker?