Amazon Interview Question

LCA problem of a binary tree