<prompt> Kujenga programu ya kuangalia kama vifungo ya kamba ni usawa.  <response>: Here is an example program written in Python to check if the parenthesis of a string are balanced:pythondef is_balancedstring: stack for char in string: if char : stack.appendchar elif char : if not stack or stack.pop ! : return False return not stack Test casesprintis_balanced True - balancedprintis_balanced True - balancedprintis_balanced False - unbalancedprintis_balanced False - unbalancedIn this program, we use a stack data structure to keep track of the opening parenthesis. If we encounter an opening parenthesis, we push it in the stack. If we encounter a closing parenthesis, we pop from the stack and check if it matches the opening parenthesis. In the end, if the stack is empty, then the parenthesis are balanced. Otherwise, it is unbalanced. 