leetcode maximum product subarray one iteration solution.