Jane Street Interview Question

Two math questions testing logic/probability