Yelp interview question

Had to do a timed test