Question 1
Input: 3 72 85 98 42 24 19 25
Step 1: Even numbers (sorted): 24 42 72 98
Step 2: Odd numbers (sorted): 3 19 25 85
Step 3: Combine (evens then odds): 24 42 72 98 3 19 25 85
What is the final output?
Even numbers first (sorted ascending), then odd numbers (sorted ascending): 24 42 72 98 3 19 25 85