Jane Street Interview Question

combinatorics and expected value question