Cognizant Interview Question

write code for Fibonacci series