using System.Collections.Generic;
public static void Main()
string[] S = new string[]{"abc", "ssddsad", "bca", "dbe"};
S = new string[]{"zzzz", "ferz", "zdsr", "fgtd"};
public static string[] Find(string[] S)
Dictionary<string, int> count_array = new Dictionary<string, int>();
for(var i = 0; i<S.Length; i++)
for(var j = 0; j<word.Length; j++)
if (count_array.ContainsKey(word[j]+j.ToString())){
fIndex = count_array[word[j]+j.ToString()];
count_array[word[j]+j.ToString()] = i;
return new string[3]{fIndex.ToString(), lIndex.ToString(), charPosition.ToString()};