Pergunta de entrevista da empresa WisdomTree Investments

Probability question: calculating the expectation