you give integer array num integer k you ask distribute array k subset equal size equal element subsetA subset incompatibility difference maximum minimum element arrayreturn minimum possible sum incompatibility k subset distribute array optimally return 1 possibleA subset group integer appear array particular order Example 1input num 1214 k 2output 4explanation the optimal distribution subset 12 14the incompatibility 21 41 4note 11 24 result small sum subset contain 2 equal elementsExample 2input num 63813122 k 4Output 6explanation the optimal distribution subset 12 23 68 13the incompatibility 21 32 86 31 6example 3input num 533633 k 3output 1explanation it impossible distribute num 3 subset element equal subset Constraints1 k numslength 16numslength divisible k1 numsi numslength