Function to check if array can be split into three equal sum subarrays by removing two elements
function findSplit ( arr , N ) { for ( let l = 1 ; l <= N - 4 ; l ++ ) { for ( let r = l + 2 ; r <= N - 2 ; r ++ ) {