Amazon interview question

Find the k-th smallest element in a binary search tree