Pergunta de entrevista da empresa Google

The first problem is to remove a redundant edge in a binary tree. The second problem is similar to leetcode 399.