Study the following information carefully and answer the given questions:
A word and number arrangement machine when give an input line of words and number rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement.
Input: by now 25 72 sight 37 15 home
Step I : sight by now 25 72 37 15 home
Step II : sight 15 by now 25 72 37 home
Step III : sight 15 now by 25 72 37 home
Step IV : sight 15 now 25 by 72 37 home
Step V : sight 15 now 25 home by 72 37
Step IV : sight 15 now 25 home 37 by 72
And Step Vi is the last step of the rearrangement.
As per the rules followed in the above steps, find out in each of the following questions the appropriate step for the given input
Input: go now and come 72 34 57 25
How many steps will be required to complete the rearrangement ?
The pattern followed here is that in step I, the word with the greatest first letter is written at first position, in step II ,the smallest number is written and so on.
INPUT : go now and come 72 34 57 25
Step I : now go and come 72 34 57 25
Step II : now 25 go and come 72 34 57
Step III : now 25 go 34 and come 72 57
Step IV : now 25 go 34 come and 72 57
Step V : now 25 go 34 come 57 and 72
=> Step V is the output.
Create a FREE account and get: