Learn how to find the largest rectangle in a histogram efficiently using a monotonic stack with a linear time solution in C#.