Jane Street interview question

Haircut calculation