Cinema Seat Allocation

Solution Code

Time Complexity

O(r)

Space Complexity

O(r)