Binary search tree

Write a C Code to accept a Binary Search Tree, if it is a valid binary search tree then traverse the tree and print the result otherwise print invalid and also print unable to traverse.
Please help me with this question.

How to check if a tree is a binary search treeHere

You can use Inorder, Preorder or Postorder to traverse the tree----HERE