Problem 2255: Tree Recovery. Solved on 04/14/2014.