Maventic interview question

Terminating value of i for a program which goes infinite loop