ZS Associates interview question

Maximum subarray sum in a given array