function to count all pairs from both the sorted arrays whose sum is equal to a given value
def countPairs ( arr1 , arr2 , m , n , x ) : NEW_LINE INDENT count = 0 NEW_LINE for i in range ( m ) : NEW_LINE DEDENT