Determin if the binary has a root-leaf path which adding up all nodes values equals the given sum.