ASDA Interview Question

Find max subarray