Shopify interview question

Maximum subarray of a larger array