Question 1
Input: apple 5 12 date grape 56 23 banana
Step 1: Sorted words → apple banana date grape
Step 2: Sorted numbers → 5 12 23 56
Step 3: Interleave (word, number, word, number...) → apple 5 banana 12 date 23 grape 56
What is the final output?
Words sorted alphabetically, numbers sorted ascending, then interleaved in pattern: word, number, word, number... → apple 5 banana 12 date 23 grape 56