Setting base Tree for Set7
Nodes k distance from root
Checks tree is foldable or not