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