Shopee interview question

Maximum subarray sum of an array