Yelp Interview Question

Check anagram