Cognizant interview question

Write a code to print Fibonacci series