Pregunta de entrevista de Cognizant

Asked we to write code for palindrome