HashedIn by Deloitte Interview Question

Find a subarray which give maximum sum of given array