If second occurrence
else if ( rem_2 [ 1 ] == - 1 ) rem_2 [ 1 ] = i ; } } if ( rem_2 [ 0 ] != - 1 && rem_2 [ 1 ] != - 1 ) { removeAndPrintResult ( arr , n , rem_2 [ 0 ] , rem_2 [ 1 ] ) ; return true ; } }