1. 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.
2. What are the test cases for a calculator application?
3. What are functional interfaces in programming?
4. Explain the API structure.
5. Write the code for parallel testing in TestNG.