Infosys Interview Question

Fibonacci series program asked me