Pregunta de entrevista de Susquehanna International Group

Several Questions about expectation and combinatorics