Hyland interview question

create a function to figure if a string is a palindrome.