Easy
Given an array nums, return the leftmost pivot index: the index where the sum of all numbers strictly to the left equals the sum strictly to the right. Return -1 if none exists.
Input: nums = [1,7,3,6,5,6] Output: 3
Input: nums = [1,2,3] Output: -1
Input: nums = [2,1,-1] Output: 0