Stuck in level 1-2, though code is correct it gives error and hence I am not able to jump to next se

I am at the last of level 1-2. Time complexity issues - though answer is correct, it shows wrong and compiler also says nothing wrong int the code. Please help on this. I am currently stuck here, next chapter also is not launching