'Maximum Product Subarray' solved.