WeWork Interview Question

Anagram problem