Mobiloitte interview question

Write code for palindrome number in python