/**
* @param {number[][]} accounts
* @return {number}
*/
var maximumWealth = function (accounts) {
return accounts.reduce((max, account) => {
const current = account.reduce((total, value) => total + value, 0);
return Math.max(max, current);
}, 0);
};