Capgemini Interview Question

logic of Fibonacci series