HashedIn by Deloitte Interview Question

Find the maximum area of a histogram