Topic: Stack Problem / Level: intermediate

Problem: Implement a function to solve the problem of finding the length of the longest valid substring of parentheses using a stack.

Run the code to see the output here...