Microsoft interview question

Lowest Common Ancestor in a Binary Tree; Detect and Remove Loop in a Linked List