Jane Street Interview Question

Math puzzles