Thales Interview Question

Leaf nodes in Binary search tree