Capgemini Interview Question

Write code for fibonacci series