Given an integer array nums, find a subarray with the largest product and return the product. Negative × negative = positive, so track both max and min.
[2,3,-2,4]6[-2,3,-4]24Unlike sum, a negative product can flip to max when multiplied by another negative. Track both max and min product ending here. At each step, new max = n, old max×n, or old min×n.