Apple interview question

Just general