Pergunta de entrevista da empresa Verys

Write a function to determine whether a string is a palindrome.