Driver code
public static void Main ( String [ ] args ) { String s1 = " a - ( b + c ) " ; String s2 = " a - ( b - c - ( d + e ) ) - f " ; Console . WriteLine ( simplify ( s1 ) ) ; Console . WriteLine ( simplify ( s2 ) ) ; } }