Tapad Interview Question

Maximum subarray sum