Shopee Interview Question

Maximum subarray sum of an array