Doubt in Week 3 Quiz Q6

Answer which I get for this question is 71214… but it showing it incorrect and the other option 2 as correct. Kindly help me with this.

hmm, no, you are running the loop for 1000 (1k) but the question is for 10000 (10k).

I executed the code and it is returning the right results: