Answer Index
let answer = 0 ; let minabs = Math . abs ( prefixsum [ N - 1 ] - 2 * prefixsum [ 0 ] ) ; for ( let i = 1 ; i < N - 1 ; i ++ ) { let ans1 = Math . abs ( prefixsum [ N - 1 ] - 2 * prefixsum [ i ] ) ;