Task: Program Execution
Input (English): [29, 31, 24, -19, 51, 7, -8, 48, 40, -7, 78]
Output (English): [24, -8, 48, 40, 78]