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