given a number and do swap in place to find the nubmer larger than input
for example input 3424861 output should be 3426148