Cognizant Interview Question

Fibonacci series