Driver Code
public static void Main ( String [ ] args ) { String s = " ( (2 ) ( (3 ) ) ) " ; bool k = Formatted ( s ) ; if ( k == true ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }