using System.Collections.Generic;
public class stringOccurence{
string str = "ElanooBoommer";
List<string> s = new List<String>(){""};
for(int i=0;i< str.Length ; i ++){
for(int j = 0 ; j < str.Length; j++){
if(!s.Contains(str[i].ToString()) || x<2){
Console.WriteLine(str[i]+" = "+ x);
s.Add(str[i].ToString());