def canConcatenate(arr, arr2):
    saida = []
    for i in arr:
        saida.extend(i)
    saida.sort()
    arr2.sort()
    return saida == arr2

5131d702cee2bb7acf23ba09b6a8949a592ed5ee
<mask token>

def canConcatenate(arr, arr2):
    saida = []
    for i in arr:
        saida.extend(i)
    saida.sort()
    arr2.sort()
    return saida == arr2
