HashedIn by Deloitte interview question

Find a subarray which give maximum sum of given array