Find lowest common ancestor in tree | Microsoft