Infosys interview question

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