Largest Rectangle in Histogram 1st solution

failed in the large test, time excessed