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