Lets say i have an array[]={1,2,4,5,6,4,1,1} i want the new array to be arr[]={3,2,8,5,6}. The idea is any duplicate number to be added up and remove the duplicate. I am not