Cognizant interview question

write code for Fibonacci series