Question d’entretien chez Google

Design an algorithm that detects a palindrome