tack to keep track of max element
self . trackStack = [ ] NEW_LINE def push ( self , x ) : NEW_LINE self . mainStack . append ( x ) NEW_LINE if ( len ( self . mainStack ) == 1 ) : NEW_LINE INDENT self . trackStack . append ( x ) NEW_LINE return NEW_LINE DEDENT