Pergunta de entrevista da empresa Jane Street

To code a solution to a problem.