Pregunta de entrevista de Cognizant

Palindrome coding question was asked.