Jane Street interview question

Basic probability, some coding questions