Docusign interview question

Write the code to check if a string is a palindrome