Apple interview question

General Coding and Tech problems