yeah the question is correct. Here the static initialization is executed only once through out the execution of program.so i is intialized to 1 only once and then it keeps on increasing its value.in
1 step- f(1) since n =1,it gets incremented by i.i.e n=2.then i++ makes i=2.
2 step-f(2)since n=2,it gets incremented by i(.i.e n=2+2.)then i++ makes i=3.
3 step-f(4)since n=4,it gets incremented by i(.i.e n=4+3.)then i++ makes i=4.
4 step-f(7)since n>=5 is satisfied returns n value. i.e->n=7
so answer is 7