Microsoft interview question

algorithm for finding the largest rectangle area in the bar graph