static void Main(string[] args) { List <string> inputs = new List <string>() { "1_2", "5_3", "2_5", "2_4" }; Node.CreateTree(inputs); Node.Print(); }