Cognizant interview question

Palindromic no in python without using recursion