Monotonic Stack

A stack that's every element in the stack is either increasing or decreasing