POJ#1694 Save tree in array, BFS visit tree, and recursively calculate the result level by level. Rank:9538