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