human
Find any two pairs ( a , b ) and ( c , d ) such that a d | Function to find two pairs ( a , b ) and ( c , d ) such that a < c and b > d.
If no such pair is found.
Driver Code"
Solution in Python:

=====
Give me a code to find any two pairs ( a , b ) and ( c , d ) such that a d and the other steps required?
assistant
#Here is code to find any two pairs ( a , b ) and ( c , d ) such that a d and the other steps required.
 def findPair ( arr , N ) :
	for i in range ( N ) :
		a , b = arr [ i ] [ 0 ] , arr [ i ] [ 1 ]
		for j in range ( i + 1 , N ) :
			c , d = arr [ j ] [ 0 ] , arr [ j ] [ 1 ]
			if ( a < c and b > d ) :
				print ( " ( " , a , b , " ) , ▁ ( " , c , d , " ) " )
				return
	print ( " NO ▁ SUCH ▁ PAIR ▁ EXIST " )
if __name__ == ' _ _ main _ _ ' :
	arr = [ [ 3 , 7 ] , [ 21 , 23 ] , [ 4 , 13 ] , [ 1 , 2 ] , [ 7 , - 1 ] ]
	findPair ( arr , 5 )