Amazon Interview Question

design and code a simple elevator system