Given a binary tree and an integer targetSum, return true if some root-to-leaf path sums to targetSum.
Input
targetSumOutput: true or false.
5 4 8 11 null 13 4 7 2 null null null 1 22
true
5+4+11+2 = 22.
1 2 3 5
false
null 0
false
Run your code against the sample tests, or Submit to run the full suite.