Amazon Interview Question

Nothing really difficult