Driver Code
public static void Main ( string [ ] args ) { int N = 7 ; List < string > list = new List < string > ( ) ; list . Add ( " ) ( ) ) " ) ; list . Add ( " ) " ) ; list . Add ( " ( ( " ) ; list . Add ( " ( ( " ) ; list . Add ( " ( " ) ; list . Add ( " ) " ) ; list . Add ( " ) " ) ; countPairs ( N , list ) ; } }