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