using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
string str = "google";
//use HashSet to map the string to char. This will remove the duplicate characters from a string.
var unique = new HashSet<char>(str);
foreach(char c in unique)
Console.Write(c);
}