Write row_totals(matrix) returning the sum of each row.
row_totals(matrix)
row_totals([[1, 2], [3, 4]]) → [3, 7]
row_totals([[5, 5, 5]]) → [15]
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.