Count number of ways to split array at index i such that subarray sums are same
let x = ( prefixCount . has ( diff / 2 ) ? prefixCount . get ( diff / 2 ) : 0 ) + ( suffixCount . has ( - diff / 2 ) ? suffixCount . get ( - diff / 2 ) : 0 ) ;