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