Jane Street Interview Question

math problems, brainteasers, mental math