Print the required sequences
if ( flag == 0 ) { document . write ( " " ) ; for ( let i in inc_arr ) document . write ( inc_arr [ i ] + " " ) ; document . write ( " " ) ; document . write ( " " ) ; for ( let i in dec_arr ) document . write ( dec_arr [ i ] + " " ) ; document . write ( " " ) ; } }