Yelp Interview Question

a leetcode easy in 45 minutes