Problem 496 · Easy
Find next greater element for each using monotonic stack.
Open the interactive visualisation