Solution for Min Stack