using System.Collections.Generic;
public static void Main()
var str = "Today is the ever greatest day";
var words = str.Split(' ');
var maxRepeatedLetters = 0;
foreach(var word in words){
var charCounts = new Dictionary<char, int>();
if(!charCounts.TryGetValue(c, out value)){
if(value > maxCharCount){
if(maxCharCount > maxRepeatedLetters){
maxRepeatedLetters = maxCharCount;
if(string.IsNullOrEmpty(result)){
Console.WriteLine(result);