Remove elements from arr [ ] at indexes ind1 and ind2
function removeAndPrintResult ( arr , n , ind1 , ind2 = - 1 ) { for ( let i = n - 1 ; i >= 0 ; i -- ) if ( i != ind1 && i != ind2 ) document . write ( arr [ i ] ) ; }