Capgemini Interview Question

Write a code for Fibonacci series