Bombardier interview question

write a code for an elevator control system