Cognizant Interview Question

Palindrome coding was very tough