Whenever you're ready, walk me through how you'd approach this.
How would you solve a scheduling and interval problem based on what the product does?
Explain how you would represent time intervals, detect or resolve conflicts, and account for boundary conditions such as adjacent appointments, duplicate intervals, and empty input. State your assumptions, describe the algorithm and complexity, and outline the tests you would use to validate the solution.