Question d’entretien chez Jane Street

Solve this problem and explain