Cognizant interview question

Fibonacci series program and for loop execution