you give integer array num follow propertiesnumslength 2 nnum contain n 1 unique elementsexactly element num repeat n timesreturn element repeat n time Example 1input num 1233output 3example 2input num 212532output 2example 3input num 51525354output 5 constraints2 n 5000numslength 2 n0 numsi 104nums contain n 1 unique element repeat exactly n time