Cognizant interview question

Writ the code for printing fibonacci series