Apple interview question

Not hard but not innovative.