SLB interview question

They asked to write an algorithm to detect a palindrome.