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