Amazon Interview Question

Focused on problem solving and efficient code