Jane Street interview question

Probability, expectations, bayes theorem, and recursion.