Apology about the confusion! Yes I used binary tree for the sake of exposition.
In my case, the input tree is a general tree (with arbitrary depth and branching factor, etc). For instance, country -> state -> city -> street -> building number -> ....
I will check the telescoping example and get back to you if needed!