DP World Interview Question

Maximum sub product array and solve it using minimum time