Optiver interview question

Fractions