SpecialStack 's member method to insert an element to it. This method makes sure that the min stack is also updated with appropriate minimum values
void push ( int x ) { if ( isEmpty ( ) == true ) { super . push ( x ) ; min . push ( x ) ; } else { super . push ( x ) ; int y = min . pop ( ) ; min . push ( y ) ;