public void AddNode(int number)
 {
     if (root == null)
     {
         root = new Node(number);
     }
     else
     {
         root.InsertNode(ref root, number);
     }
     count++;
 }
        static void Main(string[] args)
        {
            Node root = new Node();

            Console.WriteLine("Pleae Enter the number of node :");
            int n = Convert.ToInt32(Console.ReadLine());

            for (int i = 1; i <= n; i++)
            {
                int value = Convert.ToInt32(Console.ReadLine());
                root = root.InsertNode(root, value);
            }
            Console.WriteLine("Preorder traversal of  tree is : ");
            root.PreOrder(root);
            Console.WriteLine("Pleae Enter Value Which you want to delete :");
            int deleteValue = Convert.ToInt32(Console.ReadLine());

            root = root.DeleteNode(root, deleteValue);
            Console.WriteLine("After Delete Preorder traversal of Balanced Binary tree is : ");
            root.PreOrder(root);
        }