Algorithm quiz question 10

can you explain question 10 in algorithm quiz when does loop terminate??