Pregunta de entrevista de SLB

They asked to write an algorithm to detect a palindrome.