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

"rank 96 97 33 year emit 40 omen" is re-arranged according to a particular rule, in the steps mentioned below.

1. emit 96 97 33 year rank 40 omen
2. emit 33 97 96 year rank 40 omen
3. emit 33 omen 96 year rank 40 97
4. emit 33 omen 40 year rank 96 97
5. emit 33 omen 40 rank year 96 97
6. emit 33 omen 40 rank 96 year 97

If an input is: 70 nazi 45 quip bank 21 warn 26, 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 ascending order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with 70 nazi 45 quip bank 21 warn 26:

1. bank nazi 45 quip 70 21 warn 26
2. bank 21 45 quip 70 nazi warn 26
3. bank 21 nazi quip 70 45 warn 26
4. bank 21 nazi 26 70 45 warn quip
5. bank 21 nazi 26 quip 45 warn 70