Pregunta de entrevista de Fractal

difficult maths question based on probability and graphs.