A9.com interview question

Fibonacci Series