Histogram area problem

please provide the code for finding the maximum rectangle area inside histogram. i am getting number of errors.

Please share link to question and your code while asking doubts.

The histogram question can be easily solved by using stack. Try to think over it and then write the code.