Apple interview question

Straight forward and easy enough