Pregunta de entrevista de Arcesium

Kadane's algorithm based question