Jane Street interview question

Solve this problem and explain