Given a binary tree, find the lowest common ancestor of two given nodes in the tree. The lowest common ancestor is defined as the lowest node that has both given nodes as descendants, where a node can be a descendant of itself.
Click Run to execute sample tests.