Question d’entretien chez Myntra

Find subarray with maximum sum