Driver code
let vec = [ 8 , 2 , 7 , 1 , 5 , 9 ] ; let op = [ ' ' , ' ' , ' ' , ' ' , ' ' ] ; let result = orgazineInOrder ( vec , op , vec . length ) ; for ( let i = 0 ; i < result . length ; i ++ ) { document . write ( result [ i ] + " " ) ; }