Does not work for a few edge cases. `number_of_paths(root, sum)`
Does not work for a few edge cases.
number_of_paths(root, sum)