Wipro interview question

Fibonacci series