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