Fractal interview question

Code for fibonacci series, with modified approach.