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