I have been searching online about an article related to monotonic queue or stack, there not much organized information. So, I decided to just write something about it on my own.