Instructions

Directions : Study the following information carefully and answer these questions. 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. (All the numbers are two digits numbers)
Input : tall 48 13 rise alt 99 76 32 wise jar high 28 56 barn
Step I : 13 tall 48 rise 99 76 32 wise jar high 28 56 barn alt
Step II : 28 13 tall 48 rise 99 76 32 wise jar high 56 alt barn
Step III : 32 28 13 tall 48 rise 99 76 wise jar 56 alt barn high
Step IV : 48 32 28 13 tall rise 99 76 wise 56 alt barn high jar
Step V : 56 48 32 28 13 tall 99 76 wise alt barn high jar rise
Step VI : 76 56 48 32 28 13 99 wise alt barn high jar rise tall
Step VII : 99 76 56 48 32 28 13 alt barn high jar rise tall wise
and Step VII is the last step of the above input, as the desired arrangement is obtained. 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 : 84 why sit 14 32 not best ink feet 51 27 vain 68 92 (All the numbers are two digits numbers)

Question 3

# How many elements (words or numbers) are there between 'feet' and '32' as they appear in the last step of the output?

Solution

Input : 84 why sit 14 32 not best ink feet 51 27 vain 68 92

Step 1 : 14 84 why sit 32 not ink feet 51 27 vain 68 92 best

Step 2 : 27 14 84 why sit 32 not ink 51 vain 68 92 best feet

Step 3 : 32 27 14 84 why sit not 51 vain 68 92 best feet ink

Step 4 : 51 32 27 14 84 why sit vain 68 92 best feet ink not

Step 5 : 68 51 32 27 14 84 why vain 92 best feet ink not sit

Step 6 : 84 68 51 32 27 14 why 92 best feet ink not sit vain

Step 7 : 92 84 68 51 32 27 14 best feet ink not sit vain why

Output: 92 84 68 51 32 27 14 best feet ink not sit vain why

So, there are three words/numbers between feet and 32 in the last step.