Can somone help me with ECAUG209

i am unable to find my mistake https://www.codechef.com/viewsolution/37371042
can someone help me with this
problem link -> https://www.codechef.com/ENAU2020/problems/ECAUG209