Capgemini interview question

write a code for fibonacci series.