Jane Street Interview Question

Solve this problem and explain