Headway (NY) Interview Question

The question was a standard algorithms and data structures question about finding a time to schedule an appointment given a list of booked time slots.