Yelp Interview Question

Sort restaurant based on the frequency.