Bloomberg interview question

Write the functionality to design an elevator system.