Apple interview question

100% technical question