Write a method to check if a given string is a palindrome.
EasyProblem Statement
Write a method to check if a given string is a palindrome.
Sample Input
"madam"
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Write a method to check if a given string is a palindrome.
"madam"
true
Time: 2s · Memory: 256 MB