using System.Collections;
public void ValidString(string str)
char[] ch = str.ToCharArray();
for (int i = 0; i < ch.Length; i++)
if (ch[i].ToString() == "(")
Console.WriteLine(open + open);
Console.WriteLine(close + close);
public static void Main()
Program obj = new Program();