Pregunta de entrevista de IQVIA

How would you implement an anagram checker?