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