What is a monotonic stack and what kind of problems does it solve? | LetsGit.IT