The lift can now reach exactly one target floor. But a lift can get more than one request. For now we only take a second one.
So now our model is able to have multible targets. Basically a active one safed in
TargetFloor and a secondary one saved in
This lift controller should prioritize the target floor first, but, if there is any pending floor that can be done one the way, it should stop there.
Otherwise you have to update the target floor.
Your task is to program that behavior.
DEFAULT OUTPUT NOT OVERWRITTEN- There has been an error with this exercise.