Solution for problem [Maximum Product Subarray]