Given two DOM node references, identify if the child is present in the parent
Asked in the DSA for UI stage. Represent each DOM node as a dictionary with a unique id and a children list. The child reference is supplied as its unique ID.
Implement contains_node(parent, child_id). Return true if the node with child_id is the parent itself or a descendant of parent; otherwise return false.
def contains_node(parent, child_id):