Given an array, find the leftmost index where the sum of all elements to its left equals the sum of all elements to its right. Return -1 if no such index exists.
Example 1
Explanation: At index 3, the left sum (1+7+3=11) equals the right sum (5+6=11), and it's the leftmost such index.
Example 2
Explanation: At index 0, the left side is empty (sum 0), and the right side (1 + -1) also sums to 0 — a valid pivot right at the boundary.
Example 3
Explanation: No index splits the array into two equal-sum halves, so -1 signals that no pivot exists.
Code execution is coming soon.