Fractal Interview Question

difficult maths question based on probability and graphs.