using System;
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
}
public static bool IsExist(Node lst, int n)
Node P = lst;
while(P.HasNext())
if(P.GetValue() == n)
return true;
return false;
public static Node RemoveDuplicate(Node lst)
Node lst1=null, p1 = null, N;
while(P!=null)
if(!IsExist(lst1, P.GetValue()))
N = new Node(P.GetValue())
if(lst1 == null)
lst1 = N;
p1 = N;
else
p1.SetNext(N);
p1=N;
P = P.GetNext();
return lst1;