Task: Program Execution
Input (English): [-39, 51, -14, -89, 31, -40]
Output (English): 140