Pregunta de entrevista de Jane Street

Data structures / algorithms programming question