Jane Street interview question

Expectation questions, counting and combinatorics problems