Domanda di colloquio di SAP

In a building with x elevators and n floors, build a controller which handles the elevators. Example - Given current state of elevators, if someone wants to go from floor 0 to 2, which elevator will you send?