arr.reduce((acc, el) => {
const [cur, sum] = el.split(' ');
acc[cur] = (acc[cur] || 0) + +sum;
return acc;
}, {});
или
function sumMoney(arr) {
let acc = {};
arr.forEach((el) => {
const [cur, sum] = el.split(' ');
acc[cur] = (acc[cur] || 0) + +sum;
});
return acc;
}