Fractal Interview Question

Code for fibonacci series, with modified approach.