Pergunta de entrevista da empresa Uncommon Goods

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