Cognizant Interview Question

Write a program for fibonacci series