Topic: Tree Problem / Level: beginner

Problem: Implement a function to count nodes with only one child in a binary tree.

Run the code to see the output here...