Pop elements from stack whlie stack is not empty and top of stack is smaller than price [ i ]
while ( len ( st ) > 0 and price [ st [ - 1 ] ] <= price [ i ] ) : NEW_LINE INDENT st . pop ( ) NEW_LINE DEDENT