Domanda di colloquio di Jane Street

Probability questions regarding expected values and permutations