Pergunta de entrevista da empresa IQVIA

How would you implement an anagram checker?