Pregunta de entrevista de WisdomTree Investments

Probability question: calculating the expectation