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