Pregunta de entrevista de Jane Street

Probability, expectations, bayes theorem, and recursion.