JS Coding Task solution: Assigning weights to beneficiaries based o...