Pregunta de entrevista de Apple

Typical algorithm and data structures