Topic: Tree Problem / Level: intermediate

Problem: Count the number of leaf nodes that have one child in a binary search tree.

Run the code to see the output here...