Apple interview question

Really straight forward.