Driver code
public static void Main ( String [ ] args ) { String s = " ( ) ) ( ) ( " ; int n = s . Length ; if ( canBeBalanced ( s , n ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }