MiQ Interview Question

find subarray that has maximum sum within array