Disney+ Hotstar interview question

Largest Rectangle in a Histogram