public static Node_856 Create(Node_856 parent)
 {
     return(new Node_856
     {
         Children = new List <Node_856>(),
         Parent = parent
     });
 }
        private Node_856 CreateTree(string parntheses)
        {
            Node_856 current = Node_856.Create(null);

            foreach (var item in parntheses)
            {
                if (item == '{')
                {
                    var newNode = Node_856.Create(current);
                    current.Children.Add(newNode);
                    current = newNode;
                }
                else
                {
                    current = current.Parent;
                }
            }
            return(current);
        }