Given an expression remove the unnecessary brackets in it

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 

原文地址:https://www.cnblogs.com/yayagamer/p/2293941.html