Finastra Interview Question

How to detect a palindrome string?