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