MAQ Software Interview Question

Min subarray queation and that too was basic