Topic: Stack Problem / Level: intermediate

Problem: Implement a stack to find the longest valid substring of parentheses.

Run the code to see the output here...