Jane Street Interview Question

1) Math Question 2) Probability question