Pregunta de entrevista de MiQ

find subarray that has maximum sum within array