1. You are given a number in form of String. 2. You can swap two digits at most once to get the maximum valued number in that string. 3. Return the maximum valued number you can get in form of string.
0 < num.lenght() < 10^5
num = "2736"
res = "7236" Explanation : swap 2 and 7 to get maximum values