Amazon Interview Question

Find a subarray with maximum sum in an array with non-negative numbers