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