Amazon Interview Question

An example of thinking outside the box