Add solution for UVA 599 The Forest For The Trees
DFS to count the degree of each node