Apple interview question

Asked some technical questions.