You are given a rectangular matrix (a list of lists of numbers) with at least one row.
Return a list in which the element at index i is the sum of all numbers in row i of matrix.
The length of the returned list equals the number of rows in matrix.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[[1, 2], [3, 4]]
Returns
[3, 7]