Cognizant Interview Question

Writ the code for printing fibonacci series