Given an array of integers nums, return the leftmost pivot index.
The pivot index is the index where the sum of all numbers strictly to the left equals the sum of all numbers strictly to the right.
If the index is on the left edge, the left sum is 0 (an empty sum); the same applies to the right edge. Return -1 if no such index exists.