Given a BST and an integer k, return the k-th smallest value (1-indexed).
k
Input
Output: the k-th smallest value.
3 1 4 null 2 1
1
5 3 6 2 4 null null 1 3
3
Run your code against the sample tests, or Submit to run the full suite.