unction sumsInArray(arr){
const arrNew = [];
let sum;
for (let i = 0; i < arr.length; i++) {
sum = 0;
for (let j = 0; j < arr[i].length; j++) {
sum = sum + arr[i][j];
}
arrNew.push(sum);
}
return arrNew;
}