Driver code
let a = [ 15 , 1 , 2 , 17 , 6 ] ; let b = [ 1 , 1 , 0 , 1 , 1 ] ; let n = a . length ; let res = sorting_possible ( a , b , n ) ; if ( res ) document . write ( " " ) ; else document . write ( " " ) ;