Cognizant interview question

Q: Write a program for Fibonacci series.