Function to find nodes common to given two nodes
def findCommonNodes ( root , first , second ) : NEW_LINE INDENT LCA = findLCA ( root , first , second ) NEW_LINE if ( LCA == None ) : NEW_LINE INDENT return False NEW_LINE DEDENT printAncestors ( root , LCA . key ) NEW_LINE DEDENT