Write a function that returns the next number that can be created from the same digits as the input.
next_number(19) ➞ 91 next_number(3542) ➞ 4235 next_number(5432) ➞ 5432 next_number(58943) ➞ 59348