A split of an integer array is good if:
rightrespectively from left to right.
leftis less than or equal to the sum of the elements in
mid, and the sum of the elements in
midis less than or equal to the sum of the elements in
nums, an array of non-negative integers, return the number of good ways to split
nums. As the number may be too large, return it modulo
109 + 7.
Input: nums = [1,1,1] Output: 1 Explanation: The only good way to split nums is   .
Input: nums = [1,2,2,2,5,0] Output: 3 Explanation: There are three good ways of splitting nums:   [2,2,5,0]  [2,2] [2,5,0] [1,2] [2,2] [5,0]
Input: nums = [3,2,1] Output: 0 Explanation: There is no good way to split nums.
3 <= nums.length <= 105
0 <= nums[i] <= 104