Vanguard interview question

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