First Help Financial interview question

Make a function that checks if a string is a palindrome.