human
Find the K | Function to find the K - th minimum element from an array concatenated M times.
sort the elements in ascending order.
return K 'th Min element  present at K-1 index.
Driver Code"
Solution in Python:
 ... Write me a code to find the K and the other steps required?
assistant
#Here is code to find the K and the other steps required.
 def KthMinValAfterMconcatenate ( A , N , M , K ) :
	V = [ ]
	for i in range ( 0 , M ) :
		for j in range ( 0 , N ) :
			V . append ( A [ j ] )
	V . sort ( )
	return V [ K - 1 ]
if __name__ == " _ _ main _ _ " :
	A = [ 3 , 1 , 2 ]
	M , K = 3 , 4
	N = len ( A )
	print ( KthMinValAfterMconcatenate ( A , N , M , K ) )