Amazon Interview Question

the usual problem solving questions