chapter28 maxProduct