public static void Main()
Console.WriteLine("Enter the string");
string sentence = Console.ReadLine();
CalculateFrequencyIgnoringSpecial(sentence);
static void CalculateFrequencyIgnoringSpecial(string sentence)
int[] counter = new int[26];
sentence = sentence.ToLower();
foreach(char c in sentence)
foreach(char c in sentence)
if(max <counter[(int)c-'a'])
max = counter[(int)c-'a'];
Console.WriteLine(value);