Bending Spoons Interview Question

Solve a stochastic problem exercise