Task: Program Execution
Input (English): [[-24, 40], [46, -47], [-1, 0, 4, -24], [-9, 38]]
Output (English): [-960, -2162, 0, -342]