Fractal interview question

Easy