Given an array of integers nums, find a pivot index where the sum of numbers to the left equals the sum to the right.
nums = array of integers
Index of pivot or -1 if none
Example 1:
Input:
nums = [1,7,3,6,5,6]
Output:
3
Explanation:
Index 3 has left sum 11 and right sum 11.