Capgemini interview question

Fibonacci series