Domanda di colloquio di Thomson Reuters

Write an algorithm that checks strings for palindromes.