Pregunta de entrevista de Apple

data structure problem and system design