Failed expected result for main method

Oh no, I've bug in my code!!!

Repair for loop condition...