I created this test code to build a small tree that looks like this:
20
/ \
10 40
/
30
Your job is to write the print_tree function to create output
such as:
node 20 -- left child is 10, right child is 40 node 10 -- left child is null, right child is null node 40 -- left child is 30, right child is null node 30 -- left child is null, right child is null