Birlasoft Interview Question

Verify if a string is a palindrome or not.