Vanguard Interview Question

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