Nearest Smallest Element, Classical Stack Problem Explained