You are given an integer array of size N and you have to split it into two subsequences, both must have atleast one element and equal sum. There can be some elements in the array which are left undistributed. Now, count the number of ways in which the integers can be split.
Example:
Input -> [1,2,3,4,5,11]
Output -> 8
Explanation ->
The splits are as follows:
Note:
Constraints:
a. [N <= 100]
b. [-1000 <= total sum <= 1000]