Maximum Sum Sub-array - Partial Sums Approach ( with implementation )

Solving another classic: the Maximum sum sub-array problem.
I am amazed to find out how many of you guys have solved this question, but only so few know the approach using partial sums.
This video is for you!
Also, throwback to those amazing times I was shooting my “Bible of Coding Interviews and Competitive Programming” on the whiteboard from student dorm room :smiley: