If pair exists then 1 else 0 2 nd argument as size of first array fourth argument as sizeof 2 nd array
if ( pairExists ( arr1 , 4 , arr2 , 3 ) ) document . write ( 1 + " " ) ; else document . write ( 0 + " " ) ;