CGI Interview Question

Write a program to check a number is palindrom.