https://www.codechef.com/UAPRAC/problems/COWA19C

can you check why my solution is not working