Jane Street Interview Question

Two part programming exercise on coderpad