Fractal interview question

difficult maths question based on probability and graphs.