ExBrackets
This program determines if brackets in string is balanced:
A bracket is considered to be any one of the following characters: ( or ).
Two brackets are considered to be a matched pair if the opening bracket ( occurs to the left of a closing bracket ).
A matching pair of brackets is not balanced if the set of brackets it encloses are not matched. For example, )()( or ()) are not balanced.
Input Format
String containing any characters, not limited by size.
Output Format
If a string is balanced, return true. Otherwise, return false.
Accepts String and Files