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