Check if a string is a palindrome.
madam
True
Time: 2s · Memory: 256 MB
Compare the string to its reverse.
> Run your code to see console output.