Capgemini Interview Question

write a code for fibonacci series.