Question d’entretien chez HashedIn by Deloitte

Find a subarray which give maximum sum of given array