Maven Clinic Interview Question

Coding question: multi-part time intervals question