monotonic stack

2021