TL;DR - How do I alter this algorithm to return the matching val given a BST with null nodes?
TreeNode:
/** * Definition for a binary tree node. * functi