Thomson Reuters Interview Question

Write an algorithm that checks strings for palindromes.