Function to get the number of pairs of indices { i , j } in the given two arrays A and B such that A [ i ] + A [ j ] > B [ i ] + B [ j ]
static long getPairs ( Vector < Integer > A , Vector < Integer > B , int n ) {