solved MaximumProductSumArray