Pregunta de entrevista de Jane Street

1) Math Question 2) Probability question