Monotonic Stack

Hard Problems