Visualize about how the filling of seats happen for Airplane Passengers. We have some input constraints and rules to fill the seat which is explained here.
• Always seat passengers starting from the front row to back, starting from the left to the right
• Fill aisle seats first followed by window seats followed by center seats (any order in center seats)
• a 2D array that represents the rows and columns [ [3,4], [4,5], [2,3], [3,4] ]
• Number of passengers waiting in queue.
[ [3,2], [4,3], [2,3], [3,4] ]