Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

A restaurant operates daily from a specified opening time (open) to closing time (close) with a fixed seating capacity (capacity).

Given a list of existing reservations sorted by reservation start time, where each reservation is represented as [<reservation_start>, <reservation_end>, <seats>] triple, indicating the reservation period and number of seats reserved.

Test Cases
Input
Output
Expected