Jane Street Interview Question

Two combinatorics/probability questions.