Apple interview question

Typical algorithm and data structures