Get minimum element from a stack in constant O(1) time complexity | Coded in Python 3