Publicis Sapient Interview Question

maximum sum of consecative element in array string manipulation