Balance point
Write pivot_index(nums) that returns the smallest index where the sum of everything to
its left equals the sum of everything to its right, or -1 if there is none. The ends
count as having an empty side summing to 0.
pivot_index([1, 7, 3, 6, 5, 6]) -> 3
pivot_index([1, 2, 3]) -> -1
pivot_index([2, 1, -1]) -> 0
The point is to practise a running left sum against a known total instead of two prefix lists.
def pivot_index(nums):
...