CGI interview question

Write a program to check a number is palindrom.