Problem
There is a grasshopper that starts from the root node, if the hopper hops to a node with no children the hopper is stuck and can't move further. If the grasshopper has the option to move then it has to make the hop. Basically the goal is to find the probability of the grasshopper landing at each node.
Example
p : probability
parent -> [children]
(p : 0) -> [(p: 0) -> [(p:1/3)] , (p: 0) -> [(p:1/6), (p:1/6)] , (p: 1/3)]