Question d’entretien chez Chevron

Write a program to check if a given string is a palindrome