Cognizant interview question

Fibonacci series