write code here

class Solution:
def findMedianinTwoSortedAray(self , arr1 , arr2 ):
    for i in arr2:
        arr1.append(i)
    arr1.sort()
    length = len(arr1)
    if(length&1):
        n = length//2 + 1
    else:
        n = length//2
    return arr1[n-1]