Amazon Interview Question

Technical stuff