Pergunta de entrevista da empresa SLB

They asked to write an algorithm to detect a palindrome.