public void PrepareData()
        {
            Node third = new Node(7,null);
            Node second = new Node(6,third);
            Node first = new Node(5,second);

            Print(first);
        }
 public void Print(Node node)
 {
     while (node != null)
     {
         Console.WriteLine(node.Value);
         node = node.Next;
     }
 }
 public Node(int value, Node node)
 {
     Value = value;
     Next = node;
 }