Apple interview question

Nothing really difficult.