Finds the lowest common ancestor of two nodes in a tree using preprocessing and queries in O(log n) or better.
Explain code with DocComment! Try out your own code!