Jane Street interview question

Solve this question, walk me through your thinking.