Kadane's Algorithm Variant (Start Index and End Index with Sub Array returned even for all negative numbers)
It will fail in the case 8, -19, 5, -4, 20. The startIndex and endIndex will not update until 20, but the start should be 5.