Hard
Given an array heights of bar heights (each width 1), return the area of the largest rectangle that fits in the histogram.
heights
Input: heights = [2,1,5,6,2,3] Output: 10
Input: heights = [2,4] Output: 4