Question d’entretien chez Amazon

A coding question about finding the greatest subarray.