Pregunta de entrevista de Everpure

standard algorithm, data structure, or concurrency question