Find kth smallest element in BST

# Introduction In this challenge, we will implement an algorithm to find the kth smallest element in a binary search tree (BST). Given the root of the BST and an integer k, the goal is to find the kth smallest element in the tree. We will write a function called `kthSmallest` that takes the root and k as parameters and returns the kth smallest element.

|60 : 00

Click the virtual machine below to start practicing