using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
public static IList<int> PreorderTraversal(TreeNode root)
List<int> tree = new List<int>();
Stack<TreeNode> stack = new Stack<TreeNode>();
public TreeNode(int x) { val = x; }