function to count all pairs from both the sorted arrays whose sum is equal to a given value
int countPairs ( int arr1 [ ] , int arr2 [ ] , int m , int n , int x ) { int count = 0 ; unordered_set < int > us ;