Pregunta de entrevista de Accenture

Write a code for string is palindrome or not.