Cognizant Interview Question

Palindrome coding question was asked.