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