Path Sum

Given a binary tree and a target sum, return true if there exists a root-to-leaf path with that sum.

Examples
Input: [[5,4,8,11,null,13,4,7,2,null,null,null,1],22]
Output: true
Hints

Path Sum

Given a binary tree and a target sum, return true if there exists a root-to-leaf path with that sum.