MAERSK Interview Question

Check whether the string is Palindrome or not