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