Viasat Interview Question

Lowest common ancestor