Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT input1 = [ ] NEW_LINE input1 . append ( 10 ) NEW_LINE input1 . append ( 3 ) NEW_LINE input1 . append ( 2 ) NEW_LINE input1 . append ( 6 ) NEW_LINE input1 . append ( 12 ) NEW_LINE k = 4 NEW_LINE sortStack ( input1 , k ) NEW_LINE DEDENT