Task: Program Execution
Input (English): [[22, 9, 2, -37, 47], [-11, -10, -1], [42, 49, -31, -7, 38], [30, 35]]
Output (English): [-688644, -110, 16970268, 1050]