max sub array of product and sum