using System;
namespace DemoApp
{
class Program
{
static void Main(string[] args)
{
Console.Write(“Output: “ + GetMaxWord(“one two five one four five one two five two five two five”));
}
public static string GetMaxWord(string word){string[] wordlist = word.Split(' ');var diswords = wordlist.Length;double[] number = new double[diswords];var j = 0;foreach (var item in wordlist){for (int i = 0; i < diswords; i++){if (item.ToLower() == wordlist[i].ToString().ToLower()){number[j] = number[j] + 1;}}j++;}double k = 0;var l = -1;for (int i = 0; i < number.Length; i++){if (k < number[i]){k = number[i];l = i;}}return wordlist[l];}}
}
//——————————————-
//Output: five

