Pregunta de entrevista de Razorpay

Maximum Product subarray in an Array with and without negative numbers