Pergunta de entrevista da empresa Jane Street

Problems regarding probability and expectation.