Question d’entretien chez SLB

They asked to write an algorithm to detect a palindrome.