http://rosalind.info/problems/tree-view/