const bankdeposits = accounts
    .flatMap(item => item.movements) // combines all arrays into one
    .filter(item => item > 0)
    .reduce((total, item) => (total += item), 0);
  console.log(bankdeposits); // 25180