Task: Program Execution
Input (English): [[-40, -46, 9, -35, 31], [29, 47, 44], [-40, 24], [-15, 45]]
Output (English): [1840, 44, -960, 0]