Apple interview question

All pretty easy.