Apple Interview Question

Nothing very difficult