as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create an algorithm to check for palindromes.
user
def check_palindrome(word):
  # reverse the word
  reversed_word = word[::-1]
  
  # check if the original word matches the reversed word
  return word == reversed_word
  
# test the function
print(check_palindrome("abba"))  # true
print(check_palindrome("redrum"))  # false
assistant