Driver code
public static void Main ( String [ ] args ) { Node root = newNode ( ' a ' ) ; root . left = newNode ( ' b ' ) ; root . right = newNode ( ' c ' ) ; root . left . left = newNode ( ' d ' ) ; root . left . right = newNode ( ' e ' ) ; root . right . left = newNode ( ' f ' ) ; root . right . right = newNode ( ' g ' ) ; root . left . left . left = newNode ( ' h ' ) ; root . left . left . right = newNode ( ' i ' ) ; root . left . right . left = newNode ( ' j ' ) ; root . left . right . right = newNode ( ' k ' ) ; root . right . left . left = newNode ( ' l ' ) ; root . right . left . right = newNode ( ' m ' ) ; root . right . right . left = newNode ( ' n ' ) ; root . right . right . right = newNode ( ' o ' ) ; Console . Write ( " Inorder ▁ Traversal ▁ of ▁ given ▁ tree STRNEWLINE " ) ; printInorder ( root ) ; reverseAlternate ( root ) ; Console . Write ( " STRNEWLINE STRNEWLINE Inorder ▁ Traversal ▁ of ▁ modified ▁ tree STRNEWLINE " ) ; printInorder ( root ) ; } }