Peloton Interactive interview question

4) Maximum subarray and Maxium product subarray