Question d’entretien chez Meta

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