you give integer array num consist 2 n integersyou need divide num n pair thateach element belong exactly pairthe element present pair equalreturn true num divide n pair return false Example 1input num 323222output trueexplanation there 6 element num divide 6 2 3 pairsif num divide pair 2 2 3 3 2 2 satisfy conditionsExample 2input num 1234output falseexplanation there way divide num 4 2 2 pair pair satisfy condition Constraintsnumslength 2 n1 n 5001 numsi 500