Apple interview question

Data structures and basic algorithms.