To store the maximum value of the number of elements in arr2 [ ] which are smaller than or equal to some element of arr1 [ ]
let maximumFreq = 0 ; for ( let i = 0 ; i < m ; i ++ ) { maximumFreq = Math . max ( maximumFreq , hash [ arr1 [ i ] ] ) ; }