Hello and welcome to the challenge!
Write a code which receives a positive integer number and returns the next bigger number formed by the same digits. Return
-1 if that's impossible.
solve(15) -> 51
solve(223) -> 232
solve(444) -> -1
- the given number
- the next bigger number made from the same digits or
Have fun and good luck! :)