A whole range of problems based on monotonic stack