Partition of the array is defined as such that it divides the array into two equal parts. Find the element that after partition sum of left side elements will be equal to sum of right side elements.
If there is no such element return -1 otherwise return the index of the required element
Input format
First line will contain a single integer N.
Second line will contain n space separated integer representing array elements.