Topic: Stack Problem / Level: intermediate

Problem: Write a program to find the longest sequence of balanced parentheses using a stack.

Run the code to see the output here...