# Discussion of Question with ID = 007 under Passwords-and-Inputs

## This is the discussion forum for this question. If you find any mistakes in the solution, or if you have a better solution, then this is the right place to discuss. A healthy discussion helps all of us, so you are requested to be polite and soft, even if you disagree with the views of others. The question and its current solution has also been given on this page.

### Question

"walk main obey 04 92 rack 64 60" is re-arranged according to a particular rule, in the steps mentioned below.

1. main walk obey 04 92 rack 64 60
2. main 92 obey 04 walk rack 64 60
3. main 92 obey 64 walk rack 04 60
4. main 92 obey 64 rack walk 04 60
5. main 92 obey 64 rack 60 04 walk
6. main 92 obey 64 rack 60 walk 04

If an input is: face vain 44 rack 65 60 yagi 73, then what is step 3, if re-arrangement is done according to the above rule?

A

face 73 rack 65 44 60 yagi vain

B

face 73 44 rack 65 60 yagi vain

C

face 73 rack 44 65 60 yagi vain

D

face 73 rack 65 vain 60 yagi 44

Soln.
Ans: a

In each step, English words and numbers are alternately being arranged. Strings are in ascending order, and numbers are in descending order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with face vain 44 rack 65 60 yagi 73:

1. face 73 44 rack 65 60 yagi vain
2. face 73 rack 44 65 60 yagi vain
3. face 73 rack 65 44 60 yagi vain
4. face 73 rack 65 vain 60 yagi 44