Cognizant Interview Question

Fibonacci series program and for loop execution