Task: Program Execution
Input (English): [311, 337, 438, 222, 539, 588, 244, 293, 701, 31, 337, 331, 996, 7]
Output (English): [311, 337, 293, 701, 31, 337, 331, 7]