Task: Program Execution
Input (English): [[-40, -43, -3, 29], [19, 42, -31], [47, 40]]
Output (English): [-149640, -24738, 1880]