Cant get What is Wrong with my code

this is the questions LTIME73B
this is my answer https://www.codechef.com/viewsolution/24996699
i know i’ve done some mistake…can someone help me

Hint: The mistake is in your while loop( have a closer look at your ‘i’ value )
Make sure that your code produces the desired output, at least according to example, before submitting :sweat_smile: