Tree Problem 1
Solution to part (a)
Here's a picture of the ranks of all the subtrees.