tree_walk function

Traverse a Tree to Find the Leaves (Terminal Nodes)