Finastra interview question

Create a method that determines if a string is a palindrome.