A word and number arrangement machine when given an input line of words and numbers rearrnges them following a particular rule in each step. The following is an illstation of input and rearrangement.
Input: 51 pour 31 star new 23 47 home
Step 1 : 23 51 pour 31 star new 47 home
Step 2 : 23 star 51 pour 31 new 47 home
Step 3 : 23 star 31 51 pour new 47 home
Step 4 : 23 star 31 pour 51 new 47 home
Step 5 : 23 star 31 pour 47 51 new home
Step 6 : 23 star 31 pour 47 new 51 home
As per the rule followed in the following questions the appropriate step for the given input.
Instructions:(1 - 5)
A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement.
Input: go now 53 39 18 for again 66
Step 1 : 66 go now 53 39 18 for again
Step 2 : 66 again go now 53 39 18 for
Step 3 : 66 again 53 go now 39 18 for
Step 4 : 66 again 53 for go now 39 18
Step 5 : 66 again 53 for 39 go now 18
Step 6 : 66 again 53 for 39 go now 18
Step 7 : 66 again 53 for 39 go 18 now