JavaScript - Find the maximum and minimum elements in a stack

JavaScript - Find the maximum and minimum elements in a stack

More to explore

Based on this image's title: “JavaScript - Find the maximum and minimum elements in a stack