Qualtrics interview question

Code an anagram solver.