Task: Program Execution
Input (English): [3, 5, 4, 7, 5, 1, 1, 2, 4]
Output (English): [3, 7, 2]