Amazon Interview Question

Nothing really unexpected. Simple OOP concept. It's not like "design a class for elevator" stuff that complex.