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