Write a program to check if a string is a palindrome.
EasyProblem Statement
Write a program to check if a string is a palindrome.
Sample Input
A hardcoded string, e.g., "madam".
Sample Output
madam is a palindrome
Limits
Time: 2s · Memory: 256 MB
Write a program to check if a string is a palindrome.
A hardcoded string, e.g., "madam".
madam is a palindrome
Time: 2s · Memory: 256 MB