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