[来自leetcode 讨论区](https://leetcode.com/problems/min-stack/discuss/49014/Java-accepted-solution-using-one-stack)