you give 0indexed integer array num in operation followingchoose integer num equalremove integer num form pairthe operation num times possibleReturn 0indexed integer array answer size 2 answer0 number pair form answer1 number leftover integer num operation time possible Example 1input num 1321322output 31explanationform pair nums0 nums3 remove num now nums 32322form pair nums0 nums2 remove num now num 222form pair nums0 nums1 remove num now num 2No pair form a total 3 pair form 1 number leftover numsexample 2input num 11output 10explanation form pair nums0 nums1 remove num now num no pair form a total 1 pair form 0 number leftover numsexample 3input num 0output 01Explanation no pair form 1 number leftover num Constraints1 numslength 1000 numsi 100