How to check if a string is a palindrome or not?

How to check if a string is a palindrome or not?
Share: