Topic: Stack Problem / Level: intermediate

Problem: Design a function to calculate the area of the largest rectangle that can be formed under a histogram using a stack.

Run the code to see the output here...