Question d’entretien chez Bending Spoons

Solve a stochastic problem exercise