give array integer num integer threshold choose positive integer divisor divide array sum division result Find small divisor result mention equal thresholdeach result division round near integer great equal element for example 73 3 102 5the test case generate answer Example 1input num 1259 threshold 6output 5explanation we sum 17 1259 divisor 1 if divisor 4 sum 7 1123 divisor 5 sum 5 1112 Example 2input num 442233111 threshold 5Output 44 Constraints1 numslength 5 1041 numsi 106numslength threshold 106