Pergunta de entrevista da empresa Vail Systems

Using any language, write a function to check if a string is a palindrome.