using System;
public class Program
{
public static void Main()
string word ="Hello";
int count=0;
string newword= string.Empty;
for(int i=0; i <word.Length;i++)
count=0;
for(int j=0; j<word.Length;j++)
{if(word[i]==word[j])
count++;
}
Console.WriteLine(word[i]+"-"+ count);
newword =newword + word[i];
public interface IProgram1
void method1();
void method2();