Create a program to check if a given string is a palindrome.
HardProblem Statement
Create a program to check if a given string is a palindrome.
Sample Input
std::string str = "madam";
Sample Output
madam is a palindrome.
Limits
Time: 2s · Memory: 256 MB