Implementation of inorder traversal of bst.