Because a lift can take request while it is running, let's simmulate getting one request for each timestep.

Model

For this we prepared a list of request, which should only be applyed to the pending requests one by one. The request are stored in the array RequestsOverTime, where each index stands for one time-step. So each time-step you need to look at the appropriate request and set the pending floor accordingly. As with last time, the lift will not be able to visit all the floors, because we simulate not enough time-steps.

Task

Implement the applying of requests over time.