https://monashaps.github.io//posts/lca/
Least Common Ancestor (LCA) - Monash Code Binder