Uncommon Goods Interview Question

How do you reverse an integer (or tell if it is a palindrome)?