How is the option correct?

why t.c. is O(n^2). As if i is less than v.size(), it would take (n-i) operations for equal to if condition to satisfy.

Please share picture and label the issue