Write a program that checks if a string is a palindrome.
EasyProblem Statement
Write a program that checks if a string is a palindrome.
Sample Input
str = "madam"
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Write a program that checks if a string is a palindrome.
str = "madam"
true
Time: 2s · Memory: 256 MB