Pergunta de entrevista da empresa Jane Street

Two part programming exercise on coderpad