Driver Code
public static void Main ( string [ ] args ) { GFG tree = new GFG ( ) ; tree . root = new Node ( 50 ) ; tree . root . left = new Node ( 7 ) ; tree . root . right = new Node ( 2 ) ; tree . root . left . left = new Node ( 3 ) ; tree . root . left . right = new Node ( 5 ) ; tree . root . right . left = new Node ( 1 ) ; tree . root . right . right = new Node ( 30 ) ; Console . WriteLine ( " Inorder ▁ traversal ▁ " + " before ▁ conversion ▁ is ▁ : " ) ; tree . printInorder ( tree . root ) ; tree . convertTree ( tree . root ) ; Console . WriteLine ( " " ) ; Console . WriteLine ( " Inorder ▁ traversal ▁ " + " after ▁ conversion ▁ is ▁ : " ) ; tree . printInorder ( tree . root ) ; } }