Question 1
Input: cat butterfly a bee butterfly
Step 1: a
Step 2: a bee cat
Rule: Arrange words by length (shortest first), then alphabetically for same length.
What is the final output?
Sorted by word length: a bee cat butterfly butterfly