Cognizant Interview Question

write a code for palindrome in python/java