I am trying to print the path from root to a given node containing value of 2. Each node can have children containing several nodes. Here is a visual reference
This i