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