Bombardier Interview Question

write a code for an elevator control system