Jane Street Interview Question

Completion of an exercise required as initial step