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