Yelp Interview Question

Had to do a timed test