Console.Write("Enter the number of elements (n): ");
int n = int.Parse(Console.ReadLine());
string[] strings = new string[n];
Console.WriteLine("Enter the strings:");
for (int i = 0; i < n; i++)
strings[i] = Console.ReadLine();
Console.Write("Enter the search string: ");
string searchString = Console.ReadLine();
Console.Write("Enter the indices (i and j): ");
string[] indices = Console.ReadLine().Split();
int i = int.Parse(indices[0]);
int j = int.Parse(indices[1]);
for (int k = i; k <= j; k++)
if (strings[k] == searchString)
Console.WriteLine($"Index: {k}");
Console.WriteLine("Not found");
Console.WriteLine("Not found");