Pergunta de entrevista da empresa Optiver

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