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