using System;
public class Program
{
public static void Main()
string str = "Hello World";
string output = string.Empty;
for(int i = 0; i < str.Length; i++)
if(!output.Contains(str[i].ToString()))
int count = 0;
for(int j = 0; j < str.Length; j++)
if(str[i] == str[j])
count++;
}
output += str[i];
Console.WriteLine(str[i] + " count is " + count);