Cognizant Interview Question

I had to write a palindrome program