Example 1largestRectangleArea()InputCopyheights = [2,1,5,6,2,3]OutputCopy10WhyThe 5×2 rectangle spanning bars 2 and 3.