I was supposed to write a program that takes as input an arithmetic expression. The program outputs whether the expression contains matching grouping symbols, and if it’s balanced it will calculate the expression result.I was supposed to write a program that takes as