Pergunta de entrevista da empresa Vanguard

Write a function to determine if a given string is a palindrome