CONVSTR getting tle

Problem: https://www.codechef.com/LTIME84B/problems/CONVSTR
My solution: https://ideone.com/WVVIy6

Getting WA

can anybody tell me on which test case it is failing.

https://www.codechef.com/viewsolution/33502259