Pregunta de entrevista de Jane Street

Probability and expected value question I think