The program and functions should have brief comments describing their purpose, inline comments
Write a program that checks if left and right braces, brackets, and parentheses are balanced. Your
program should ask the user to provide symbols as a string and store the user provided input in a string named str. Write a function named balanceCheck(str)that will return true is str is balanced and false otherwise. Use a std::stack inside the balance Checkfunction to solve this problem. You can assume that users will not enter any white spaces in between the symbols. You can assume that users will only enter a string consists of braces ({or}), brackets ([or]), and parentheses ((or)).
A sample output is as follows:
Provide a sequence of symbols for balance check: [{(){()()}}]
The expression you have provided is balanced.
Provide a sequence of symbols for balance check: [{{]}}[]
The expression you have provided is not balanced.