Pregunta de entrevista de Cognizant

I had to write a palindrome program