Directions (1-5): 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.
Input- 99 ginny 82 genny 94 70 gennifer geus 93 gennon 96 gee
Step I – 96 99 ginny 82 genny 94 70 geus 93 gennon gee gennifer
Step II- 94 96 99 ginny 82 genny 70 geus 93 gee gennifer gennon
Step III- 93 94 96 99 ginny 82 70 geus gee gennifer gennon genny
Step IV- 82 93 94 96 99 ginny 70 gee gennifer gennon genny geus
Step V- 70 82 93 94 96 99 gee gennifer gennon genny geus ginny
Step V is the last step.
Input: 83 cpo 39 ssb 44 ssc 79 cat 92 ibps 87 cgl
[WATU 142]