using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
Console.WriteLine(FindIndex(new string[] {"hi", "edabit", "fgh", "abc"}, "fgh"));
}
public static int FindIndex(string[] arr, string str)
int i = 0;
foreach(var item in arr)
i++;
if(item.Contains(str))
i--;
break;
return i;