Pergunta de entrevista da empresa Tech Mahindra

Write a code to check whether a given number is palindrome.