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