Tapad interview question

Maximum subarray sum