Infosys Interview Question

Write a program to find the next palindrome number for the given integer.