Largest Rectangle in Histogram DP solution

No idea