you give integer array num you want maximize number point perform follow operation number timespick numsi delete earn numsi point afterwards delete element equal numsi 1 element equal numsi 1return maximum number point earn apply operation number times Example 1input num 342output 6explanation you perform follow operation Delete 4 earn 4 point consequently 3 delete num 2 Delete 2 earn 2 point num you earn total 6 pointsexample 2input num 223334output 9explanation you perform follow operation Delete 3 earn 3 point all 2s 4s delete num 33 Delete 3 earn 3 point num 3 Delete 3 earn 3 point num you earn total 9 point Constraints1 numslength 2 1041 numsi 104