@kathuria There can be two cases (i) it contains doesnt element as 0 , if it is the you just need to find the maximum subarray product
Now , for finding maximum subarray product , you can think of the way that -> traverse the array and keep checking for maximum product just like kadane maximum subarray sum .
(ii) it contains 0 as element , then you have to find maximum product in the same manner as discussed above but whenever you hit 0 then your max answer can’t be increased as it will contain zero so initialise your temp variable as 1 and then start finding your answer from the index just greater than the index of zero,
It;s easy to understand . If you have still any doubt then feel free to ask.