solve problem 06 recursively, and verify with post order traversal