Topic: Stack Problem / Level: intermediate

Problem: Write a program to simulate a stack-based system for solving the maximum rectangle in a histogram problem using two stacks.

Run the code to see the output here...