Capgemini Interview Question

Fibonacci series