Question 1
Input: planet galaxy 89 45 comet 23
Step 1: Separate & sort words → comet galaxy planet
Step 2: Separate & sort numbers → 23 45 89
Step 3: Alternate (word, number, word, number...) → comet 23 galaxy 45 planet 89
What is the final arrangement?
Words sorted alphabetically, numbers sorted ascending, then placed alternately starting with a word: comet 23 galaxy 45 planet 89