Pregunta de entrevista de Bosch Power Tools

How would you solve an palindrom exercise?