MAERSK interview question

Check whether the string is Palindrome or not