Question d’entretien chez takealot.com

How would you write a palindrome function ? Time complexity ?