Task: Program Execution
Input (English): [39, 40, 31, 12, -4, -12, -4]
Output (English): 52