New York Life interview question

They asked to find the maximum product subarray question from leetcode.