count frequency of each sum obtained from the pairs of arr1 [ ] and arr2 [ ] and store them in ' um '
for ( int i = 0 ; i < n ; i ++ ) for ( int j = 0 ; j < n ; j ++ ) um [ arr1 [ i ] + arr2 [ j ] ] ++ ;