Fractal interview question

Basic to intermediate level interview