Directions: Read the following information carefully and answer the q...
Looking at the solved input, we can observe from the last step that the words at odd places start with a vowel and arranged alphabetically(A,E,I,O,U).
on the other hand, if we look at the words at even position, we can find that they are consonants and arranged according to the no. of alphabets in a words in increasing order.
So, for the given input:
INPUT: Ice captain umbrella rain glass owl man age
First, we bring the word starting with a vowel alphabetically i.e. age
Step I: age ice captain umbrella rain glass owl man now the consonant with the least no of words brought at the next position.
Step II: age man ice captain umbrella rain glass owl
Step III: age man ice rain captain umbrella glass owl
Step IV: age man ice rain owl captain umbrella glass
Step V: age man ice rain owl glass captain umbrella
Step VI: age man ice rain owl glass umbrella captain
6 steps are there in total for the given input.