Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The constraints are small enough that we can check every number.
To reverse a number, first convert it to a string. Then, create a new string that is the reverse of the first one. Finally, convert the new string back into a number.