Driver Code
let arr = [ 12 , 25 , 36 , 85 , 98 , 75 , 89 , 15 , 63 , 66 , 64 , 74 , 27 , 83 , 97 ] ; let q = [ 63 , 63 , 86 , 63 , 78 ] ; let n = arr . length ; let m = q . length ; for ( let i = 0 ; i < m ; i ++ ) search ( arr , n , q [ i ] ) ? document . write ( " " ) : document . write ( " " ) ;