Akamai interview question

Max sum in an array