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