Also.

Given as input an integer number, by only rearranging the digits from the entered number what is the next highest number that can be formed.

eg
Enter number: 1243
Next highest: 1324

Enter number: 1234321
Next highest: 1241233