Jane Street interview question

Standard probability/algorithms questions.