Finastra interview question

How to detect a palindrome string?