Amazon Interview Question

Nothing too difficult