Meta Interview Question

LCA Problem. Google it if you don't understand/