Apple interview question

Data structure and algorithm & system design