Thomson Reuters interview question

Write an algorithm that checks strings for palindromes.