Meta interview question

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