Microsoft Interview Question

algorithm for finding the largest rectangle area in the bar graph