Apple interview question

some background about previous experience