WeWork interview question

Anagram problem