Question d’entretien chez Accenture

Write a code to check if a string is a palindrome.