Pergunta de entrevista da empresa Expo Communications

How would you write a palindrome function?