Question 1
Input: monkey elephant insect goat hat
Step 1: Identify vowel-starting words: elephant insect
Step 2: Identify consonant-starting words: goat hat monkey
Step 3: Sort each group alphabetically
Step 4: Combine (vowels first, then consonants): elephant insect goat hat monkey
What is the final output?
Words starting with vowels come first (sorted alphabetically), followed by words starting with consonants (sorted alphabetically): elephant insect goat hat monkey