Jane Street Interview Question

Solve this question, walk me through your thinking.