Question d’entretien chez Nagarro

Find largest sum of a subarray