Mental Model
We want to find the largest product of a continuous part of the list. Because negative numbers can flip the sign, we keep track of both the biggest and smallest products so far.
Analogy: Imagine walking on a path where stepping on a slippery stone (negative number) can flip your direction. To find the farthest point you can reach, you remember both your farthest forward and backward steps because a backward step might help you jump forward later.
Array: [2] -> [-3] -> [4] -> [-1] -> [0] -> [5] Track maxProd and minProd at each step to handle sign flips.
