Create a function which takes a number and returns the maximum value by rearranging its digits.
rotateMaxNumber(123) ➞ 321 rotateMaxNumber("001") ➞ 100 rotateMaxNumber(999) ➞ 999
The input number can be a digit or a string.