Yelp interview question

Same anagram question that everyone else was given