Problem in solving nextpalindrome!

Hi all,
I’m facing NZEC error at run time for next palindrome porblem.
here is my code

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

please help me out.
thanks,

Please remove package from you code and NZEC error will be solved :smiley:

//