Program to generate next smallest palindrome larger than any given number.

Changed the logic to convert int array into number.

Signed-off-by: Abhijit Kumar <abhikumar@manh.com>