Gemalto Interview Question

To check the string is palindrome or not