Pregunta de entrevista de Sokrati

question based on kadane algorithm