Pregunta de entrevista de Tech Mahindra

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