Topic: Stack Problem / Level: intermediate

Problem: Write a program to calculate the largest rectangle under the skyline using a stack.

Run the code to see the output here...