Pergunta de entrevista da empresa Bending Spoons

Solve a stochastic problem exercise