Check if a string is a palindrome
madam
true
Time: 2s · Memory: 256 MB
Compare the original string with its reversed version using StringBuilder.reverse().
> Run your code to see console output.