A word and number arrangement machine rearranges an input line step by step, following a rule. Here is an illustration of the input and the steps:
Input: goat 92 46 cake 66 pot 58 house
Step I: 46 goat 92 cake 66 pot 58 house
Step II: 46 58 goat 92 cake 66 pot house
Step III: 46 58 66 goat 92 cake pot house
Step IV: 46 58 66 92 goat cake pot house
Following the same rule, the machine is given this input: queen zebra sun 68 11 46 99 goat
Which step is the last step for this input?
Rule (from the illustration): In each step the smallest number not yet arranged moves to the left end, after the numbers already arranged; the words keep their order.
For the new input: Step I: 11 queen zebra sun 68 46 99 goat; Step II: 11 46 queen zebra sun 68 99 goat; Step III: 11 46 68 queen zebra sun 99 goat; Step IV: 11 46 68 99 queen zebra sun goat.
Answer: Step IV