Yelp interview question

The coding problem was about calculating open hours.