You are given the roots of two binary trees, root and subRoot.
Your task is to determine if there is a subtree of root that is identical to subRoot.
You may assume that:
root itself.Return true if subRoot is a subtree of root, otherwise return false.
True
subRoot with value 3 exists as a subtree in root.
False
subRoot with value 8 does not exist in root.
True
subRoot is identical to root, so it is a subtree.
True