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