Jane Street interview question

Two math questions testing logic/probability