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