DoorDash Interview Question

max sub array coding problem