Tripjack interview question

Get Min Element from Stack Question in O(1)