Pregunta de entrevista de Jane Street

Probability question about dice rolls.