Amazon Interview Question

Technical only