Infosys interview question

Fibonacci series program asked me