Task: Program Execution
Input (English): [[18, -31, 5, 40, 38], [21, 23, 39], [-25, 27, -34, 22]]
Output (English): [-155, 18837, -675]