Reverse the digits of a number.
12345
54321
Time: 2s · Memory: 256 MB
Convert the number to a string, reverse it, and convert it back to an integer.
> Run your code to see console output.