Domanda di colloquio di Bosch Power Tools

How would you solve an palindrom exercise?