Solution for finding Kth inorder node in a BST