# Discussion of Question with ID = 042 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

"sack urea walk obey 58 09 42 89" is re-arranged according to a particular rule, in the steps mentioned below.

1. walk urea sack obey 58 09 42 89
2. walk 89 sack obey 58 09 42 urea
3. walk 89 urea obey 58 09 42 sack
4. walk 89 urea 58 obey 09 42 sack
5. walk 89 urea 58 sack 09 42 obey
6. walk 89 urea 58 sack 42 09 obey
7. walk 89 urea 58 sack 42 obey 09

If an input is: urea 90 lady 43 yagi 96 game 69, then how many steps are required if re-arrangement is done according to the above rule?

A

5

B

4

C

7

D

6

Soln.
Ans: a

In each step, English words and numbers are alternately being arranged in decreasing order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with urea 90 lady 43 yagi 96 game 69:

1. yagi 90 lady 43 urea 96 game 69
2. yagi 96 lady 43 urea 90 game 69
3. yagi 96 urea 43 lady 90 game 69
4. yagi 96 urea 90 lady 43 game 69
5. yagi 96 urea 90 lady 69 game 43