How many steps will be required to complete the arrangement?
VI
In the given word and number arrangement machine, in Step I the word coming first alphabetically is shifted at the 1st place and the greatest number is shifted to the end. In Step II the word coming second alphabetically is shifted at the first place and the second greatest number is shifted to the end. Same pattern is followed in the next steps till all the words and numbers are arranged as in Step V.
Input: 49 last zen 16 82 yet can vast 33 aim 87 54
Step I: aim 49 last zen 16 82 yet can vast 33 54 87
Step II: can aim 49 last zen 16 yet vast 33 54 87 82
Step III: last can aim 49 zen 16 yet vast 33 87 82 54
Step IV: vast last can aim zen 16 yet 33 87 82 54 49
Step V: yet vast last can aim zem 16 87 82 54 49 33
Step VI: zen yet vast last can aim 87 82 54 49 33 16