AICS Interview Question

Maximum sum subarray and Maximum product subarray