Words and numbers are arrangement machines. When given an input line of numbers and words, they rearrange them following a particular rule in each ste...
Question
Words and numbers are arrangement machines. When given an input line of numbers and words, they rearrange them following a particular rule in each step. The following is an illustration of input and rearrangement:
Input: Engage Bean 15 92 Cramp Dream 21 45 Glue 33
Step I: Bean 45 Engage 15 92 Cramp Dream 21 Glue 33
Step II: Bean 45 Cramp 92 Engage 15 Dream 21 Glue 33
Step III: Bean 45 Cramp 92 Dream 33 Engage 15 21 Glue
Step IV: Bean 45 Cramp 92 Dream 33 Engage 15 Glue 21
Step IV is the last step of the arrangement.
As per the above rule followed in the above steps, find out how many steps are required to complete the arrangement for the following input:
Input: 38 42 Keep Neat Hold 51 63 Lake Peace 17
After following the arrangement rule up to Step IV (the last step), identify the element which is second to the left of the element that is third from the right end in Step IV.