Pregunta de entrevista de Meta

Make a palindrome algorithm? Tell it's complexity etc.