Pregunta de entrevista de Apple

System design question at the end