Domanda di colloquio di Tech Mahindra

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