Razorpay interview question

Maximum Product subarray in an Array with and without negative numbers