Cognizant Interview Question

Palindromic no in python without using recursion