Problem Statement
Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree.
Approach
Perform In-Order traversal (Left, Root, Right). Keep a counter. When counter reaches k, return the current node value.
Time & Space Complexity
Time complexity is O(H + k). Space complexity is O(H).
