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 an array with additional constraints on sequence length.

Run the code to see the output here...