Cognizant interview question

Maximum array sum in an array