Getting wrong output for the sample test case

I have even checked my code along the solution video, infact i approximately replicated the code, but still i am getting wrong output for the sample test case given in the question maximumProductSubarray, please if you can check my code and tell me where the error is?
code link :- https://drive.google.com/file/d/1p0zWTZCGwW5P68R3L0E8-hl5jhQGxyXe/view?usp=sharing

@saksham_thukral
hi

so the problem here is not with ur code
but with the tutorial
the test cases on leetcode got updated after video was made
so please read the discuss solution on leetcode for the time being
i`ll get the tutorial updated

sorry for the inconvenience

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.