Domanda di colloquio di Fractal

difficult maths question based on probability and graphs.