HashedIn by Deloitte Interview Question

LCA of a Binary tree.