LeetCode
Maximum Product Subarray
Click
here
for an explanation.