Topic: Stack Problem / Level: advanced

Problem: Design a stack-based approach to solve the problem of finding the longest sequence of alternating positive and negative numbers in a matrix with constraints on sequence length.

Run the code to see the output here...