Jane Street Interview Question

Maths based questions