Pergunta de entrevista da empresa Razorpay

Maximum Product subarray in an Array with and without negative numbers