GlobalLogic Interview Question

find string is palindrome or not?