the minproduct array equal minimum value array multiply array sumfor example array 325 minimum value 2 minproduct 2 325 2 10 20given array integer num return maximum minproduct nonempty subarray num since answer large return modulo 109 7note minproduct maximize perform modulo operation testcase generate maximum minproduct modulo fit 64bit sign integerA subarray contiguous array Example 1input num 1232output 14explanation the maximum minproduct achieve subarray 232 minimum value 22 232 2 7 14example 2input num 23312output 18explanation the maximum minproduct achieve subarray 33 minimum value 33 33 3 6 18example 3input num 315642output 60explanation the maximum minproduct achieve subarray 564 minimum value 44 564 4 15 60 constraints1 numslength 1051 numsi 107