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

Advertisement

### Question

"89 70 ware 82 keys 38 tale sack" is re-arranged according to a particular rule, in the steps mentioned below.

1. ware 70 89 82 keys 38 tale sack
2. ware 38 89 82 keys 70 tale sack
3. ware 38 tale 82 keys 70 89 sack
4. ware 38 tale 70 keys 82 89 sack
5. ware 38 tale 70 sack 82 89 keys
6. ware 38 tale 70 sack 82 keys 89

If step 3 of an input is: vice 36 verb 87 71 tail 97 sack, then what is step 4, if re-arrangement is done according to the above rule?

A

vice 36 verb 71 87 tail 97 sack

B

vice 36 97 87 71 tail verb sack

C

vice 36 verb 71 tail 87 sack 97

D

vice 71 97 87 36 tail verb sack

Soln.
Ans: a

In each step, English words and numbers are alternately being arranged. Strings are in descending order, and numbers are in ascending order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with verb 71 97 87 36 tail vice sack:

1. vice 71 97 87 36 tail verb sack
2. vice 36 97 87 71 tail verb sack
3. vice 36 verb 87 71 tail 97 sack
4. vice 36 verb 71 87 tail 97 sack
5. vice 36 verb 71 tail 87 97 sack
6. vice 36 verb 71 tail 87 sack 97