Apple interview question

noting too difficult