Task: Program Execution
Input (English): [[39, 5], [6, 6, -42, 20, 31], [-21, -11, -31], [39, 0, -23]]
Output (English): [195, 31, -7161, -897]