Cognizant interview question

palindrome program in python, odd or even, AI