working for test cases but showing wrong submission

my code is working for test cases and i tested for some more inputs it’s working , but when i submit it’s showing wrong solution , so, please help me. problem is solved is “THE NEXT PALINDROME” .