Instructions

Study the given information and answer the following:
When a word and number arrangement machine is given an input line of words and numbers, it arranges them following a particular rule. The following is an illustration of input and rearrangement:
(All the numbers are two digit numbers)
Input: 40 made butter 23 37 cookies salt extra 52 86 92 fell now 19
Step I: butter 19 40 made 23 37 cookies salt extra 52 86 92 fell now
Step II: cookies 23 butter 19 40 made 37 salt extra 52 86 92 fell now
Step III: extra 37 cookies 23 butter 19 40 made salt 52 86 92 fell now
Step IV: fell 40 extra 37 cookies 23 butter 19 made salt 52 8692 now
Step V: made 52 fell 40 extra 37 cookies 23 butter 19 salt 86 92 now
Step Vl: now 86 made 52 fell 40 extra 37 cookies 23 butter 19 salt 92
Step VII: salt 92 now 86 made 52 fell 40 extra 37 cookies 23 butter 19
Step VII is the last step of the above arrangement as the intended arrangement is obtained.
As per the rules followed in the given steps, find out the appropriate steps for the given input.
Input: 32 proud girl beautiful 48 55 97 rich family 61 72 17 nice life

Question 16

How many steps will be required to complete the given input?

Solution

The pattern here followed is that in the first step, the word with the smallest first letter according to the English alphabetical series is placed in the first position and the smallest number is placed in the second position and so on with the remaining steps.

INPUT : 32 proud girl beautiful 48 55 97 rich family 61 72 17 nice life

Step I : beautiful 17 32 proud girl 48 55 97 rich family 61 72 nice life

Step II : family 32 beautiful 17 proud girl 48 55 97 rich 61 72 nice life

Step III : girl 48 family 32 beautiful 17 proud 55 97 rich 61 72 nice life

Step IV : life 55 girl 48 family 32 beautiful 17 proud 97 rich 61 72 nice

Step V : nice 61 life 55 girl 48 family 32 beautiful 17 proud 97 rich 72

Step VI : proud 72 nice 61 life 55 girl 48 family 32 beautiful 17 97 rich

Step VII : rich 97 proud 72 nice 61 life 55 girl 48 family 32 beautiful 17

Step VII is the final step.

=> 7 steps are required to complete the given input.