Meta interview question

continuous subarray sum, merge intervals