posted by Anonymous on .
Consider the number 6135246. Jai can change this number in the following way.
He can select atleast one digit and at most six digits (which need not necessarily be
consecutive) from this number, and shift them to the rightmost in their respective order.
For example- If she has 97361, she selects 7, 3 and 1, and the number becomes
96731. What is the minimum number of steps she takes to convert
6135246 to 1234566 ?