Microsoft interview question

Write a program that, given an integer, checks if it is a palindrome