Simplify a given algebraic string of characters, ‘+’, ‘-‘ operators and parentheses. Output the simplified string without parentheses. Examples: Input : "a-(b+c)" output "a-b-c" Input : "a-(a-b)" output "b"
Any idea?