Finally pop all Nodes from Stack and prints them .
v = s [ - 1 ] NEW_LINE s . pop ( ) NEW_LINE i = 0 NEW_LINE j = len ( v ) - 1 NEW_LINE while ( i < j ) : NEW_LINE INDENT print ( v [ i ] , " ▁ " , v [ j ] , end = " ▁ " ) NEW_LINE j = j - 1 NEW_LINE i = i + 1 NEW_LINE DEDENT