Cognizant Interview Question

Write a code to print Fibonacci series