We are given the edges of binary tree
like 1 is root node
and also we are given the values associated with each node
1 2
1 3
2 4
3 8
something like this
Then how can we create the binary tree and find the minimum product path from one leaf node to other leaf node