Publicis Sapient interview question

maximum sum of consecative element in array string manipulation