Pregunta de entrevista de Jane Street

Short exercise involving data processing.