Pregunta de entrevista de Google

Design an algorithm that detects a palindrome