Pregunta de entrevista de Palantir Technologies

Variation of the maximum subarray problem