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