Blackbaud interview question

Implement code to find whether a word is a palindrome