Topic: Stack Problem / Level: intermediate

Problem: Create a function to simulate a stack-based approach for detecting the longest sequence of valid parentheses in a string.

Run the code to see the output here...