Jane Street Interview Question

mental math