Rise People interview question

Coding question about words anagrams