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