Naamik, tugsumik Itsarnikkut peqatigiiffiat nutaarsiassat Allatut pujortut, root1-mut root2-mut, pujortut sanannersorneqarlutik. Tugsumik pujortut tamaat illit qalipaat, qalipat ingerlataqat kingulliit tamakkiisumik pitsanngornermi pujortut siullerlutik. Qalipaap illit pujortut tamaat qalipaasut, qalipat ingerlataqat nuna tamakkiisumik niriulersorneqarlutik. Pujortut tamaat sanannersorneqarlutik, taamaaliussapput pujortut kingusseqatigiissapput, niriunersorneqarlutik, nuna pujortut tamaat qalipaap illit.
Nuannersorneq TreeNode-mi:
    def __init__(self, val=0, left=None, right=None):
        self.val = val
        self.left = left
        self.right = right

Ilisarnissamut mergeTrees(root1, root2):
    if not root1:
        return root2
    if not root2:
        return root1
    
    root1.val += root2.val
    root1.left = mergeTrees(root1.left, root2.left)
    root1.right = mergeTrees(root1.right, root2.right)
    
    return root1