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