using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace duplicateCount.cs
public static void Main(string[] args)
Console.WriteLine("Enter the String:");
string str = Console.ReadLine();
for(int i = 0; i < str.Length; i++)
for(int j = 0; j < str.Length; j++)
string tempva = str[i].ToString();
string tempval = str[j].ToString();
if (tempva == tempval&&i!=j)
str = str.Replace(tempval,"");
Console.WriteLine(count);