https://medium.com/@abdellahtahri11/day-3-analyzing-algorithm-efficiency-with-the-maximum-subarray-sum-problem-ba1bf843a0fa