Given an expression remove the unnecessary brackets in it without creating an ambiguity in its execution.
input output
ex1: (a+(b)+c) => a+b+c
ex2: (a*b)+c => a*b+c
Given an expression remove the unnecessary brackets in it without creating an ambiguity in its execution.
input output
ex1: (a+(b)+c) => a+b+c
ex2: (a*b)+c => a*b+c