Jane Street Interview Question

mental maths and probability