Jane Street Interview Question

two math questions in the first round, one coding problem in the second round