A fulcrum of an array is an integer such that all elements to the left of it and all elements to the right of it sum to the same value. Write a function that finds the fulcrum of an array.
To illustrate:
findFulcrum([3, 1, 5, 2, 4, 6, -1]) ➞ 2
// Since [3, 1, 5] and [4, 6, -1] both sum to 9
findFulcrum([1, 2, 4, 9, 10, -10, -9, 3]) ➞ 4
findFulcrum([9, 1, 9]) ➞ 1
findFulcrum([7, -1, 0, -1, 1, 1, 2, 3]) ➞ 0
findFulcrum([8, 8, 8, 8]) ➞ -1
-1 (see example #4).