Apple Interview Question

Not hard but not innovative.