human
Product of maximum in first array and minimum in second | Function to calculate the product.
Initialize max of first array.
initialize min of second array.
To find the maximum element in first array.
To find the minimum element in second array.
Process remaining elements.
Driver code"
Solution in Python:

Write me a code to product of maximum in first array and minimum in second and the other steps required?
assistant
#Here is code to product of maximum in first array and minimum in second and the other steps required.
 def minMaxProduct ( arr1 , arr2 , n1 , n2 ) :
	max = arr1 [ 0 ]
	min = arr2 [ 0 ]
	i = 1
	while ( i < n1 and i < n2 ) :
		if ( arr1 [ i ] > max ) :
			max = arr1 [ i ]
		if ( arr2 [ i ] < min ) :
			min = arr2 [ i ]
		i += 1
	while ( i < n1 ) :
		if ( arr1 [ i ] > max ) :
			max = arr1 [ i ]
			i += 1
	while ( i < n2 ) :
		if ( arr2 [ i ] < min ) :
			min = arr2 [ i ]
			i += 1
	return max * min
arr1 = [ 10 , 2 , 3 , 6 , 4 , 1 ]
arr2 = [ 5 , 1 , 4 , 2 , 6 , 9 ]
n1 = len ( arr1 )
n2 = len ( arr1 )
print ( minMaxProduct ( arr1 , arr2 , n1 , n2 ) )