Question d’entretien chez Comcast

Find the subarray which will give a largest sum