Driver Code
public static void main ( String [ ] args ) { String A = " ( ( ( a + b ) ▁ + ▁ c ) ▁ + ▁ d ) " ; if ( IsRedundantBraces ( A ) ) { System . out . println ( " YES " ) ; } else { System . out . println ( " NO " ) ; } } }