Question d’entretien chez Jane Street

Two part programming exercise on coderpad