Question d’entretien chez Optiver

Given an array, please find the highest sum of the subarray