Kadane’s Algorithm — Negatives Are Useless

Imagine you’re given the following array: