Hyperscience interview question

Problem regarding anagrams