Reverse a string
hello
olleh
Time: 2s · Memory: 256 MB
Use the StringBuilder.reverse() method to reverse the string.
> Run your code to see console output.