Sum it up problem


As Mapping hasn’t been covered yet, is there any other way to remofve the duplicates?
if you can just give me a hint

Sort and remove duplicates from the array