monotonic stack — Software Engineer Interview Preparation