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