use analysis method to get array maximum mulitplied sub array can save heap memory