A node is a leaf node if both left and right child nodes of it are NULL.
Leaf count for the above tree is 3.
INPUT: First line No of Nodes(excluding Root) Second line Consists Tree Nodes in level order traversal.
Output :
Output Should Be No. of Leaf Nodes.
Input tree shown in fig