Fractal interview question

stages in Spark