Given a number, return the difference between the maximum and minimum numbers that can be formed when the digits are rearranged.
rearrangedDifference(972882) ➞ 760833
// 988722 - 227889 = 760833
rearrangedDifference(3320707) ➞ 7709823
// 7733200 - 23377 = 7709823
rearrangedDifference(90010) ➞ 90981
// 91000 - 19 = 90981
N/A