Question 1
Study the pattern:
Input: apple cat umbrella dog
Output: apple umbrella cat dog
Now, what will be the output for:
Input: apple cat ball dog
The machine applies 'vowel_first' rule.
apple cat ball dog → apple cat ball dog
apple cat ball dog → apple cat ball dog