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