Question 1
Input: 45 apple 19 umbrella cat 12 elephant
Step 1: Check condition for each element
Step 2: Elements satisfying condition: apple umbrella elephant
Step 3: Rearranged output: apple umbrella elephant 45 19 12 cat
What is the final output?
Final output after conditional rearrangement: apple umbrella elephant 45 19 12 cat