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