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