Amazon interview question

Nothing really difficult