Question 1
Input: moon 34 67 venus 56 sun
Step 1: Separate → Words: moon venus sun, Numbers: 34 67 56
Step 2: Sort numbers ascending → 34 56 67
Step 3: Sort words by length (then alphabetically) → sun moon venus
Step 4: Alternate (word, number, word, number...) → sun 34 moon 56 venus 67
What is the final output?
Words sorted by length (shortest first, alphabetically for ties), numbers sorted ascending, then alternated: sun 34 moon 56 venus 67