Input:determined railway 25 38 47 pantry aroma 67
How many steps will be required to complete the rearrangement?
Six
We write the first letters of the given problem to simplify.
Step 1 : 67 D R 25 38 47 P A
Step 2 : 67 A D R 25 38 47 P
Step 3 : 67 A 47 D R 25 38 P
Step 4 : 67 A 47 D 38 R 25 P
Step 5 : 67 A 47 D 38 P R 25
Step 6 : 67 A 47 D 38 P 25 R